package com.zmn.oms.common.constant;

import com.google.common.collect.Lists;
import com.zmn.oms.common.vo.KVDict;

import java.util.List;

/**
 * @author: SongWeidong
 * @description: 渠道
 * @create: 2019-10-15 18:22
 **/

public class DefaultChannelListConsts {

    private static List<KVDict> tmailChannelList = Lists.newArrayListWithExpectedSize(0);
    private static List<Integer> tmailChannelIdList = Lists.newArrayListWithExpectedSize(0);

    static {
        tmailChannelList.add(KVDict.builder().value(OrderConsts.CHANNEL_ID_TMALL_WYG).text("战略渠道F2").build());
        tmailChannelList.add(KVDict.builder().value(OrderConsts.CHANNEL_ID_TMALL_BUSINESS).text("战略渠道F3").build());
        tmailChannelList.add(KVDict.builder().value(OrderConsts.CHANNEL_ID_TMALL_PIPE).text("战略渠道F13").build());
        tmailChannelList.add(KVDict.builder().value(OrderConsts.CHANNEL_ID_TMALL_BIZ_OPPEIN).text("天猫欧派").build());
        tmailChannelList.add(KVDict.builder().value(OrderConsts.CHANNEL_ID_TMALL_BIZ_LAIMD).text("天猫莱梅德").build());

        tmailChannelIdList.add(OrderConsts.CHANNEL_ID_TMALL_WYG);
        tmailChannelIdList.add(OrderConsts.CHANNEL_ID_TMALL_BUSINESS);
        tmailChannelIdList.add(OrderConsts.CHANNEL_ID_TMALL_PIPE);
        tmailChannelIdList.add(OrderConsts.CHANNEL_ID_TMALL_BIZ_LAIMD);

    }

    public static DefaultChannelListConsts getInstance() {
        return DefaultChannelListConsts.SingletonHolder.INSTANCE;
    }

    public List<KVDict> getTmailChannelList() {
        return tmailChannelList;
    }

    public List<Integer> getTmailChannelIdList() {
        return tmailChannelIdList;
    }

    private static class SingletonHolder {
        private static final DefaultChannelListConsts INSTANCE = new DefaultChannelListConsts();
    }

}
